console.log("初始化");
//初始化app
var myApp = new Framework7({
    modalTitle: '哇吖旅行',
    modalButtonOk: '知道了',
    animateNavBackIcon: true,
    precompileTemplates: true,
    template7Pages: true,
});

//初始化view 
var mainView = myApp.addView('.view-main', {
	  dynamicNavbar: true
});

// Export selectors engine
var $$ = Dom7;
var url_get_treasure_hunter_list="http://api.wayatrip.com/treasurehunter/getList";
var url_get_treasure_hunter_presentation="http://api.wayatrip.com/treasurehunter/detail";
var url_check_user_is_registered="http://api.wayatrip.com/treasurehunter/checkUserisRegistered";
var url_check_grpcode_is_exist="http://api.wayatrip.com/treasurehunter/checkGrpcodeisExist";
var url_user_register = 'http://api.wayatrip.com/treasurehunter/userRegister';

//预编译模板
myApp.treasureHunterIndexItemTemplate = Template7.compile($$('script#treasure_hunter_index_item').html());
myApp.treasureHunterPresentationTemplate = Template7.compile($$('script#treasure_hunter_presentation').html());
myApp.treasureHunterGroupMembersTemplate = Template7.compile($$('script#treasure_hunter_group_members').html());
myApp.treasureHunterGroupOneMemberTemplate = Template7.compile($$('script#treasure_hunter_group_one_member').html());